<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
	response.setContentType("text/html;charset=UTF-8");
%> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
</head>
<body>
<jsp:include page="top.jsp" />
<div id="vote" class="wrap">
	<h2>查看投票</h2>
	<ul class="list">
		<li>
			<h4><s:property value="subject.vs_title"/></h4>
			<p class="info">共有 <s:property value="subject.options.size"/> 个选项，已有 <s:property value="subject.items.size"/> 票。</p>
			<ol>
			  <s:iterator value="subject.options" status="status" id="option"> 
				<li><s:property value="%{#option.vo_option}"/>
					<div class="rate">
						<div class="ratebg" data="<s:property value='%{#option.sizePer}'/>"></div>
						<p><s:property value="%{#option.size}"/>票<span>(<s:property value="%{#option.sizePer}"/>%)</span></p>
					</div>
				</li>
			  </s:iterator>	
			</ol>
			<div class="goback"><a href="index.jsp">返回投票列表</a></div>
		</li>
	</ul>
</div>
<div id="footer" class="wrap">
	云和数据 &copy; 版权所有
</div>
<link type="text/css" rel="stylesheet" href="js/jqueryui/themes/base/jquery-ui.css" />
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script>
$(".ratebg").each(function(i,ele){
	var v = parseInt($(ele).attr("data"));
	$(ele).progressbar({
		value: v
	});
});
</script>
</body>
</html>
